package com.atguigu.springcloud.feign;

import com.atguigu.springcloud.entity.CommonResult;
import com.atguigu.springcloud.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: fxy
 * @Date: 2022/04/12/16:08
 * @Description:
 */
@Component
@FeignClient(value = "cloud-payment-com.yun.service")
public interface PaymentFeignService {
    @GetMapping(value = "/Payment/get/{id}")
    CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
